import {Column, Entity, Index, PrimaryGeneratedColumn} from "typeorm";

@Index(['companyId'])
@Entity()
export abstract class BaseEntity {
    @PrimaryGeneratedColumn({comment: '自增唯一id'})
    id: number;

    @Column({comment: '数据归属公司', nullable: true})
    companyId: number;

    @Column({comment: '备注', nullable: true})
    public remark: string;

}